
public class TimeConverter
{
	private int hours, minutes;
	
	public TimeConverter(String time)
	{
		String hoursStr = time.substring(0, time.indexOf(':'));
		String minutesStr = time.substring(time.indexOf(':') + 1);
		
		hours = Integer.parseInt(hoursStr);
		minutes = Integer.parseInt(minutesStr);
	}

	public int getHours()
	{
		return hours;
	}

	public int getMinutes()
	{
		return minutes;
	}

}
